package com.jueming.miser.order.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jueming.miser.common.utils.PageUtils;
import com.jueming.miser.common.utils.Query;

import com.jueming.miser.order.dao.MiserOrderDao;
import com.jueming.miser.order.entity.MiserOrderEntity;
import com.jueming.miser.order.service.MiserOrderService;


@Service("miserOrderService")
public class MiserOrderServiceImpl extends ServiceImpl<MiserOrderDao, MiserOrderEntity> implements MiserOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MiserOrderEntity> page = this.page(
                new Query<MiserOrderEntity>().getPage(params),
                new QueryWrapper<MiserOrderEntity>()
        );

        return new PageUtils(page);
    }

}